package net.orange.architecture.exception;

/**
 * The exception occur in database operation, every system database level error
 * should throw as the DatabaseException.
 */
public class DatabaseException extends Exception {

	private static final long serialVersionUID = 2509773112572699105L;

	/**
	 * Disable the default constructor.
	 */
	@SuppressWarnings("unused")
	private DatabaseException() {
		super();
	}

	/**
	 * The constructor with the exception.
	 * 
	 * @param e
	 *            The exception.
	 */
	public DatabaseException(Exception e) {
		super(e);
	}

	/**
	 * The constructor with error message.
	 * 
	 * @param msg
	 *            The error message
	 */
	public DatabaseException(String msg) {
		super(msg);
	}
}
